Repository navigation
0.10.19: Set the published decode rate only from requests of 32 or more tokens - #2626
Draft
jonathan308 wants to merge 1 commit into
Draft
jonathan308 wants to merge 1 commit into
jonathan308 wants to merge 1 commit into
Conversation
A request that generated fewer than 32 tokens no longer updates the slot's published decode rate (observed_decode_tps), its age or the deadline decode rate; it still counts in its prompt-size bucket and in generated work. One short reply could pull a Mac measuring 80-100 tok/s down to about 11. Existing tests that drove the rate with short requests now use 33-201 tokens with the same rates and step shapes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
marked this pull request as draft
November 24, 2026 07:22
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For 0.10.19, on top of #2569. To be reworked before it is ready: a slot whose requests are all under 32 tokens must still get a first decode rate (deadline admission needs one), and the published rate must not alternate with an omitted one under the 30-minute idle age. Routing accuracy: a short reply no longer sets the decode rate a Mac publishes.
Why
A slot publishes one decode rate (
observed_decode_tps), an EWMA of every completed request's measured rate. A request of a few tokens measures mostly its first steps or its tail, so one short reply could pull a Mac that measured 80–100 tok/s down to about 11, and routing then ranked it behind slower Macs.Change
recordPerformanceFinish, a request that generated fewer than 32 tokens no longer updates the published rate, its age or the deadline decode rate (EngineV2Bridge.minimumPublishedDecodeTokens, matching the coordinator's owncompletion_tokens >= 32convention).Tests
DecodeRateSampleLengthTests(completed requests through a scripted engine):Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.